package com.hnx.admin.aurora.system.domain.convert.role;

import com.hnx.admin.aurora.system.domain.dto.role.entity.RoleDTO;
import com.hnx.admin.aurora.system.domain.vo.role.entity.RoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;

import java.util.List;

@Mapper(componentModel = "spring", unmappedSourcePolicy = ReportingPolicy.IGNORE)
public interface RoleConvert {
    @Mapping(source = "createTime",target = "createTime")
    RoleVO toVO(RoleDTO roleDTO);
    List<RoleVO> toList(List<RoleDTO> list);
}
